package schema

import (
	"fmt"
	"net/http"
)

//解析前端单条数据
func FormParse(r *http.Request, v interface{}) {
	decoder := NewDecoder()
	r.ParseMultipartForm(200000000)
	err := decoder.Decode(v, r.Form)
	if err != nil {
		fmt.Println(err)
		panic(err)
	}
}
